package gui;

import javax.swing.JFrame;
import main.Defines;

public class GameFrame {
    private JFrame frame = null;
    private MainScreen mainScreen = null;
    private GameScreen gameScreen = null;
    
    
    public GameFrame() {
        
    }
    
    public void initGameFrame() {
        frame = new JFrame(Defines.GAME_TITLE);
        
        mainScreen = new MainScreen();
        gameScreen = new GameScreen();
        
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.add(mainScreen);
        frame.pack();
    }
    
    public void setVisibility(boolean visible) {
        frame.setVisible(visible);
    }
}